home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2832 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: hubcap.clemson.edu!usenet
  2. From: Vikas Jain <vjain>
  3. Newsgroups: comp.lang.c
  4. Subject: The msync puzzle...read on
  5. Date: 24 Jan 1996 11:06:17 GMT
  6. Organization: Clemson University
  7. Message-ID: <4e53r9$k44@hubcap.clemson.edu>
  8. NNTP-Posting-Host: em.eng.clemson.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.12 (X11; I; SunOS 5.4 sun4m)
  13. X-URL: news:comp.lang.c
  14.  
  15. Hi 
  16.  
  17.      Can someone please tell me what exactly does msync do.
  18.      I know that when we have shared variables an msync done after 
  19.      modifying the shared variable updates its value in the physical 
  20.      storage and optionally invalidate all other copies of the variable.
  21.      Could someone please shed light on how it invalidates.
  22.  
  23.      If there are two processes eg. A & B running in parallel and sharing
  24.      a common resource lets say `X' which BTW has been mmap(ed). If one process
  25. changes X  and does an msync (invalidate) how does the other process get
  26.      to know about this change. Is it informed automatically or does it too
  27.      have to do an msync to READ the latest value of X. In case of the later,
  28.      how do the READ and WRITE msync commands differ.
  29.  
  30.      Any information on the above shall be appreciated very much.
  31.      Please, restrict your replies to email only (vjain@ces.clemson.edu).
  32.  
  33.      Thanks,
  34.  
  35.      VJ
  36.  
  37.